/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sandbox.org.wads.elements;

import org.enhydra.shark.xpdl.XMLCollectionElement;

/**
 *
 * @author Nattasan W.
 */
public class Approval extends XMLCollectionElement {

  public Approval(Approvals parent) {
    super(parent, true);
  }

  @Override
  protected void fillStructure() {
    ActivityId refActivityId = new ActivityId(this);
    Approver refApprover = new Approver(this);
    Created refCreated = new Created(this);
    Replied refReplied = new Replied(this);
    Message refMessage = new Message(this);
    
    add(refActivityId);
    add(refApprover);
    add(refCreated);
    add(refReplied);
    add(refMessage);
  }
  
  public String getActivityId() {
    return get("ActivityId").toValue();
  }
  
  public void setActivityId(String val) {
    set("ActivityId", val);
  }
  
  public String getApprover() {
    return get("Approver").toValue();
  }
  
  public void setApprover(String val) {
    set("Approver", val);
  }
  
  public String getCreated() {
    return get("Created").toValue();
  }
  
  public void setCreated(String val) {
    set("Created", val);
  }
  
  public String getReplied() {
    return get("Replied").toValue();
  }
  
  public void setReplied(String val) {
    set("Replied", val);
  }
  
  public String getMessage() {
    return get("Message").toValue();
  }
  
  public void setMessage(String val) {
    set("Message", val);
  }

}
